package com.itheima.Demo01.demo02;

import java.io.FileOutputStream;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) {
        FileOutputStream file = null;
        try {
            file = new FileOutputStream("day0610-code", true);
            file.write(50);
            file.write("\n\r".getBytes());
            file.write(51);
            file.write("\n\r".getBytes());
            file.write(52);
            file.write("\n\r".getBytes());

        } catch (Exception o) {
            o.printStackTrace();
        } finally {
            if (file != null) {
                try {
                    file.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

        }
    }
}
